  /**
   * Generate time : 2016-05-09 9:24:37
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ci.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCIAccInfo 
 * table comment : 事故信息表 
 */
public class ZMCIAccInfo extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdName = " ";		/* 矿井名称*/
	private String fdDepartmentName = " ";		/* 单位名称*/
	private String fdAccType = " ";		/* 事故类型*/
	private BigDecimal fdQsNum = new BigDecimal("0");		/* 轻伤人数*/
	private BigDecimal fdZsNum = new BigDecimal("0");		/* 重伤人数*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("矿井名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentName");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("单位名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAccType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("事故类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdQsNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("轻伤人数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdZsNum");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("重伤人数");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCIAccInfo() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdName - 矿井名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 矿井名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	/**
	 * get the fdDepartmentName - 单位名称
	 * @return the fdDepartmentName
	 */
	public String getFdDepartmentName() {
		return this.fdDepartmentName;
	}
	
	/**
	 * set the fdDepartmentName - 单位名称
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}
	/**
	 * get the fdAccType - 事故类型
	 * @return the fdAccType
	 */
	public String getFdAccType() {
		return this.fdAccType;
	}
	
	/**
	 * set the fdAccType - 事故类型
	 */
	public void setFdAccType(String fdAccType) {
		this.fdAccType = fdAccType;
	}
	/**
	 * get the fdQsNum - 轻伤人数
	 * @return the fdQsNum
	 */
	public BigDecimal getFdQsNum() {
		return this.fdQsNum;
	}
	
	/**
	 * set the fdQsNum - 轻伤人数
	 */
	public void setFdQsNum(BigDecimal fdQsNum) {
		this.fdQsNum = fdQsNum;
	}
	/**
	 * get the fdZsNum - 重伤人数
	 * @return the fdZsNum
	 */
	public BigDecimal getFdZsNum() {
		return this.fdZsNum;
	}
	
	/**
	 * set the fdZsNum - 重伤人数
	 */
	public void setFdZsNum(BigDecimal fdZsNum) {
		this.fdZsNum = fdZsNum;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdAccType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAccType")), fdAccType));
		setFdQsNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdQsNum")), fdQsNum));
		setFdZsNum(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdZsNum")), fdZsNum));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdDepartmentName",StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));	
			map.put("fdAccType",StringUtils.toString(fdAccType, eiMetadata.getMeta("fdAccType")));	
			map.put("fdQsNum",StringUtils.toString(fdQsNum, eiMetadata.getMeta("fdQsNum")));	
			map.put("fdZsNum",StringUtils.toString(fdZsNum, eiMetadata.getMeta("fdZsNum")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			
		return map;
	
	}
}